﻿using System;
using System.ComponentModel.DataAnnotations;

namespace JNPF.Basics.Models.Extend.Dtos.TableExample
{
    /// <summary>
    /// 新建项目
    /// </summary>
    public class TableExampleCrInput
    {
        /// <summary>
        /// 项目名称
        /// </summary>
        [Required(ErrorMessage = "项目名称不能为空")]
        public string projectName { get; set; }
        /// <summary>
        /// 项目编码
        /// </summary>
        [Required(ErrorMessage = "项目编码不能为空")]
        public string projectCode { get; set; }
        /// <summary>
        /// 项目类型
        /// </summary>
        [Required(ErrorMessage = "项目类型不能为空")]
        public string projectType { get; set; }
        /// <summary>
        /// 项目阶段
        /// </summary>
        [Required(ErrorMessage = "项目阶段不能为空")]
        public string projectPhase { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        [Required(ErrorMessage = "客户名称不能为空")]
        public string customerName { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>
        [Required(ErrorMessage = "负责人不能为空")]
        public string principal { get; set; }
        /// <summary>
        /// 立项人
        /// </summary>
        [Required(ErrorMessage = "立项人不能为空")]
        public string jackStands { get; set; }
        /// <summary>
        /// 交付日期
        /// </summary>
        [Required(ErrorMessage = "交付日期不能为空")]
        public DateTime? interactionDate { get; set; }
        /// <summary>
        /// 费用金额
        /// </summary>
        [Required(ErrorMessage = "费用金额不能为空")]
        public decimal? costAmount { get; set; }
        /// <summary>
        /// 已用金额
        /// </summary>
        [Required(ErrorMessage = "已用金额不能为空")]
        public decimal? tunesAmount { get; set; }
        /// <summary>
        /// 预计收入
        /// </summary>
        [Required(ErrorMessage = "预计收入不能为空")]
        public decimal? projectedIncome { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [Required(ErrorMessage = "描述不能为空")]
        public string description { get; set; }
    }
}
